home *** CD-ROM | disk | FTP | other *** search
- /*
- グラフィック標準関数
- */
-
- #include <math.h>
- #include <EGB.H>
-
- extern char work[];
-
- void circle(int x, int y, int r, int wm, int c )
- {
- char pa[64];
- EGB_paintMode( work, wm );
- EGB_color( work, 0, c );
- EGB_color( work, 2, c );
- if (r!=0)
- {
- WORD(pa ) = x;
- WORD(pa+2) = y;
- WORD(pa+4) = r;
- EGB_circle( work, pa );
- } else {
- WORD(pa ) = 1;
- WORD(pa+2) = x;
- WORD(pa+4) = y;
- EGB_pset( work, pa );
- }
- }
-